<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>

    <h2>学生名册名</h2>
    <table>
        <thead>
            <tr>
                <th>编号</th>
                <th>姓名</th>
                <th>年龄</th>
            </tr>
        </thead>
        <tbody>
            {{each data}}
            <tr>
                <td>{{$index}}</td>
                <td>{{$value.name}}</td>
                <td>{{$value.age}}</td>
            </tr>
            {{/each}}

        </tbody>
    </table>

</body>

</html>